{include file=header.html}

<script type="text/javascript">
    $(function() {
        $('#page-job-apply_form').validate({
            errorPlacement: function(error, element) {
                var error_td = element.parent('td').next('td');
                error_td.find('.field_notice').hide();
                error_td.find('.red').hide();
                error_td.append(error);
            },
            success: function(label) {
                label.addClass('validate_right').text('OK!');
            },
            onkeyup: false,
            rules: {
                name: {
                    required: true
                },
                telephone: {
                    required: true,
                    minlength: 6,
                    checkTel: true
                }
            },
            messages: {
                name: {
                    required: '{$lang.user_required}'
                },
                telephone: {
                    required: '{$lang.telephone_required}',
                    minlength: '{$lang.telephone_error}',
                    checkTel: '{$lang.telephone_error}'
                }
            }
        });
    });
</script>
<section class="page_job">
    <form method="post"  id="page-job-apply_form">
        <ul class="form_content">
            <li>
                <p>
                    <select name="job_id" id="job_id">
                        <!--{foreach from=$jobs item=job}-->
                        <option value="{$job.job_id}" <!--{if $job.job_id eq $id}--> selected="selected"<!--{/if}-->>{$job.position}</option>
                        <!--{/foreach}-->
                    </select>
                </p>
            </li>
            <li>
                <p><input type="text" name="name" id="name" value="" placeholder="{$lang.name}"/></p>
            </li>
            <li>
                <p>
                    <input name="sex" type="radio" id="man" value="0" checked="checked">
                    <label for="man">{$lang.gentleman}</label>
                    <input name="sex" type="radio" id="women" value="1">
                    <label for="women">{$lang.lady}</label>
                </p>
            </li>
            <li>
                <p><input type="text" name="birthday" id="birthday" value=""  placeholder="{$lang.birthday}"/></p>
            </li>
            <li>
                <p><input type="text" name="native_place" id="native_place" value="" placeholder="{$lang.native_place}"/></p>
            </li>
            <li>
                <p><input type="text" name="telephone" id="telephone" value="" placeholder="{$lang.telephone}"/></p>
            </li>
            <li>
                <p><input type="text" name="zip_code" id="zip_code" value="" placeholder="{$lang.zip_code}"/></p>
            </li>
            <li>
                <p><input type="text" name="email" id="email" value="" placeholder="{$lang.email}"/></p>
            </li>
            <li>
                <p><input type="text" name="education" id="education" value="" placeholder="{$lang.education}"/></p>
            </li>
            <li>
                <p><input type="text" name="professional" id="professional" value="" placeholder="{$lang.professional}"/></p>
            </li>
            <li>
                <p><input type="text" name="school" id="school" value="" placeholder="{$lang.school}"/></p>
            </li>
            <li>
                <p><input type="text" name="address" id="address" value="" placeholder="{$lang.address}"/></p>
            </li>
            <li>
                <p><textarea name="awards" cols="60" rows="5"  placeholder="{$lang.awards}"></textarea></p>
            </li>
            <li>
                <p><textarea name="experience" cols="60" rows="5"  placeholder="{$lang.experience}"></textarea></p>
            </li>
            <li>
                <p><textarea name="hobbies" cols="60" rows="5"  placeholder="{$lang.hobbies}"></textarea></p>
            </li>
            <li>
                <p><input type="submit" value="{$lang.save_edit}" class="red_btn"/></p>
            </li>
        </ul>

    </form>
</section>



{include file=footer.html}